package Thread.Old;

public class MyThread2 {
    public static void main(String[] args) {
        for (int i = 0; i < 60; i++) {
            System.out.println(i);
            try{//sleep的作用就是暂停指定毫秒数
                Thread.sleep(1000);
                //暂停1000毫秒
            }catch(InterruptedException e){
                System.out.println(e);
            }
        }
    }
}
